﻿using Abp.Domain.Entities;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Batman.Cms.Domains
{
    [Table("Article")]
    public class Article : AuditBase
    {
        [MaxLength(255)]
        public string Title { get; set; }

        [MaxLength(255)]
        public string Summary { get; set; }

        [MaxLength(255)]
        public string MetaKeyWords { get; set; }

        [MaxLength(255)]
        public string MetaDescription { get; set; }

        public int Counter { get; set; }

        public int ArticleTypeId { get; set; }

        [MaxLength(255)]
        public string Description { get; set; }

        public string ArticleContent { get; set; }

        public int Status { get; set; }

        [MaxLength(255)]
        public string ImageThumbUrl { get; set; }

        [MaxLength(255)]
        public string ImageUrl { get; set; }

        public bool IsPublished { get; set; }

        public DateTime? PublishAt { get; set; }

        public ArticleType ArticleType { get; set; }
    }
}
